#ifndef GAMEWINDOW_H
#define GAMEWINDOW_H

#include <QMainWindow>
#include <math.h>
#include "point_graph.h"
#include <QPen>
#include <QColor>


namespace Ui {
    class GameWindow;
}

class GameWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit GameWindow(bool alone, QWidget *parent = 0);
    ~GameWindow();

private:
    Ui::GameWindow *ui;
    Playdesk *playdesk;
    QGraphicsScene *scene;
    QPen *line_pen;
    QPen *null_pen;
    QBrush *_brush;
    mline *line;
    //QHttp http;

    void Draw();
    void resizeEvent(QResizeEvent *);
    void showEvent(QShowEvent *);

private slots:
    void on_pushButton_clicked();
    void Draw_Slot();
    void Ring_Slot(mline);
    void on_pushButton_pass_pressed();
    void on_pushButton_exit_pressed();
};

#endif // GAMEWINDOW_H
